package com.ryskoo.common.hclconstant;

/**
 * 评价状态
 *
 *  0 评价区隐藏   1 评价区展示
 *
 * @author BeHappy
 */
public enum AppraiseStateEnum {
	HIDE("0", "评价区隐藏"),
	SHOW("1", "评价区显示");
	
    private String value;
    private String name;

    AppraiseStateEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByValue(String value) {
        for (AppraiseStateEnum ose : AppraiseStateEnum.values()) {
            if (value.equals(ose.getValue())) {
                return ose.getName();
            }
        }
        return "";
    }
}
